package com.bwc.aidemo.viewmodel

import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.mojawa.mj_util.gps.GpsSignalStrength

class MainViewModel(application: Application) : AndroidViewModel(application){
    private val _gpsSignalStrength = MutableLiveData<GpsSignalStrength>()
    val gpsSignalStrength: LiveData<GpsSignalStrength> get() = _gpsSignalStrength

    fun updateGpsSignal(signalStrength: GpsSignalStrength) {
        _gpsSignalStrength.postValue(signalStrength)
    }

}